import requests

url="http://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify"
a=requests.get(url)
print(a.cookies)

url2="http://hmshop-test.itheima.net/index.php?m=Home&c=User&a=do_login"
b = {"username": "18210000000", "password": "123456", "verify_code": "8888"}
c=requests.post(url2,json=b,cookies=a.cookies)
print(c.json())
print(c.status_code)

url3="http://hmshop-test.itheima.net/Home/Order/order_list.html"
d=requests.get(url3,cookies=a.cookies)
print(d.text)
print(d.status_code)

